package com.zmm.zebulon.module.infra.biz.convert.db;

import com.zmm.zebulon.module.infra.biz.controller.admin.db.vo.DataSourceConfigCreateReqVO;
import com.zmm.zebulon.module.infra.biz.controller.admin.db.vo.DataSourceConfigRespVO;
import com.zmm.zebulon.module.infra.biz.controller.admin.db.vo.DataSourceConfigUpdateReqVO;
import com.zmm.zebulon.module.infra.biz.dal.dataobject.db.DataSourceConfigDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * description: 数据源配置 类型转换
 *
 * @author zebulon
 * package com.zmm.zebulon.module.infra.biz.convert.db
 * name: DataSourceConfigConvert
 * date 2024/1/7 20:16
 */
@Mapper
public interface DataSourceConfigConvert {

    DataSourceConfigConvert INSTANCE = Mappers.getMapper(DataSourceConfigConvert.class);

    DataSourceConfigDO convert(DataSourceConfigCreateReqVO bean);

    DataSourceConfigDO convert(DataSourceConfigUpdateReqVO bean);

    DataSourceConfigRespVO convert(DataSourceConfigDO bean);

    List<DataSourceConfigRespVO> convertList(List<DataSourceConfigDO> list);

}
